package com.jmp.service.api.admin;

import com.jmp.service.api.admin.dto.*;
import one.stand.model.ResultModel;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

public interface BannerApi {
    /**
     * 企业ID-平台
     */
    int COMPANY_ID_PLATFORM = 0;

    /**
     * 事件：0 无 1 商品详情 2 h5 3企业 4商品列表 5专题页 6奖券系统
     */
    int EVENT_NULL = 0;
    int EVENT_GOODS = 1;
    int EVENT_H5 = 2;
    int EVENT_COMPANY = 3;
    int EVENT_GOODS_LIST = 4;
    int EVENT_SUBJECT = 5;
    int EVENT_TICKET = 6;

    /**
     * banner类型：0 IPAD 1 智慧展厅 2经销商首页 3经销商首页海报 4经销商分类 5经销商首页品牌 6经销商精选品牌 7APP初始页广告 8首页专题 9首页拼团 10我的页面
     */
    int BANNER_TYPE_IPAD = 0;
    int BANNER_TYPE_SHOWROOM = 1;
    int BANNER_TYPE_JSX_INDEX = 2;
    int BANNER_TYPE_JSX_INDEX_CARD = 3;
    int BANNER_TYPE_JSX_TYPE = 4;
    int BANNER_TYPE_JSX_BRAND = 5;
    int BANNER_TYPE_JSX_BRAND_2 = 6;
    int BANNER_TYPE_CRM_APP = 7;
    int BANNER_TYPE_SUBJECT = 8;
    int BANNER_TYPE_GROUP_BUYING = 9;
    int BANNER_TYPE_USER = 10;

    /**
     * 状态：0 未上架 1上架
     */
    int STATUS_DOWN = 0;
    int STATUS_UP = 1;

    /**
     * 优选下架状态：0 未处理 1 下架
     */
    int SELECT_STATUS_NONE = 0;
    int SELECT_STATUS_DOWN = 1;

    @PostMapping("banner/save")
    ResultModel save(@RequestBody BannerSaveDto request);

    @PostMapping("banner/remove")
    ResultModel remove(@RequestBody BannerRemoveDto request);

    @PostMapping("banner/up")
    ResultModel up(@RequestBody BannerUpDto request);

    @PostMapping("banner/down")
    ResultModel down(@RequestBody BannerDownDto request);

    @PostMapping("banner/list")
    ResultModel<BannerListVo> list(@RequestBody BannerListDto request);
}
